//
//  Account.h
//  MHO
//
//  Created by papo on 2/20/14.
//  Copyright (c) 2014 maihoang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "Contants.h"

@interface Account : NSObject

@property (nonatomic, retain) NSString* accountEmail;
@property (nonatomic, retain) NSString* accountId;
@property (nonatomic, retain) NSString* publishName;
@property (nonatomic, retain) NSString* password;
@property (nonatomic, retain) NSString* parentId;
@property (nonatomic, retain) NSString* parentEmail;
@property (nonatomic, retain) NSString* userTyperId;
@property (nonatomic, retain) NSString* userTyperName;
@property (nonatomic, retain) NSString* fullName;
@property (nonatomic, retain) NSString* cardIdNumber;
@property (nonatomic, retain) NSString* phoneNumber;
@property (nonatomic, retain) NSString* avatar;
@property (nonatomic, retain) NSString* birthday;
@property (nonatomic, retain) NSString* gender;
@property (nonatomic, retain) NSString* address;
@property (nonatomic, retain) NSString* provinceId;
@property (nonatomic, retain) NSString* provinceName;
@property (nonatomic, retain) NSString* status;

+ (Account*)accountWithDictionary:(NSDictionary*)dict;

+ (ServiceResult*)loginWithInfo:(NSDictionary*)dict;
//+ (BOOL)login;
+ (BOOL)updateInfoWithDictionary:(NSDictionary*)dict;
+ (ServiceResult*)registerUserWithDictionary:(NSDictionary*)dict;
+ (Account*)getCurrentUserInfo;


- (id)initWithDictionary:(NSDictionary*)dict;
- (void)getUserInfo;
+ (ServiceResult*)changePassword:(NSString*)current newPass:(NSString*)newPass;

@end
